
<div class="top-bar">
    <h5 class="nav-title">app新增</h5>
</div>
<div class="imain">
    <form method="post" action="/admin/api/add" class="userform">
        @csrf
        <div class="">
            <div class="form-group">
                <label for="exampleInputEmail1">app名称</label>
                <input type="text" name="name" class="form-control @error('name') is-invalid @enderror" value="{{ old('name') }}">
                @error('name')
                <div class="invalid-feedback">
                    {{ $message }}
                </div>
                @enderror
            </div>
            <div class="form-group">
                <label for="exampleInputEmail1">app描述</label>
                <input type="text" name="desc" class="form-control @error('desc') is-invalid @enderror" value="{{ old('desc') }}">
                @error('desc')
                <div class="invalid-feedback">
                    {{ $message }}
                </div>
                @enderror
            </div>
            <div class="form-group">
                <label for="exampleInputEmail1">app版本号</label>
                <input type="text" name="ver" class="form-control @error('ver') is-invalid @enderror" value="{{ old('ver') }}">
                @error('ver')
                <div class="invalid-feedback">
                    {{ $message }}
                </div>
                @enderror
            </div>
            <div class="form-group">
                <label for="exampleInputEmail1">app地址</label>
                <input type="text" name="url" class="form-control @error('url') is-invalid @enderror" value="{{ old('url') }}">
                @error('url')
                <div class="invalid-feedback">
                    {{ $message }}
                </div>
                @enderror
            </div>
            <div class="form-group">
                <label for="exampleFormControlSelect1">状态</label>
                <select class="form-control" name="status">
                    <option value="1">开启</option>
                    <option value="0">关闭</option>
                </select>
            </div>
            <button class="btn btn-primary" type="submit">保存</button>
        </div>
    </form>
</div>
